/**
 * Created by linc on 2017/5/9.
 */
var express = require('express');

var auth = require('./auth');
var message = require('./message');
var document = require('./document');

var api = express();

api.use(auth);

api.use('/messages', message);

api.use('/documents', document);

api.use(function (req, res) {
  res.status(404).json({message: ''})
});

module.exports = api;
